//
//  LrcLable.m
//  QQMusic
//
//  Created by wwj on 16/4/26.
//  Copyright © 2016年 wwj. All rights reserved.
//

#import "LrcLable.h"

@implementation LrcLable

- (void)setTime:(NSTimeInterval)time{
    _time = time;
    if (_time > 1.0f) return;
    [self setNeedsDisplay];
}

-(void)drawRect:(CGRect)rect{
    [super drawRect:rect];
    CGRect rectF = CGRectMake(0, 0, self.bounds.size.width * self.time, self.bounds.size.height);
    [[UIColor greenColor] set];
    UIRectFillUsingBlendMode(rectF, kCGBlendModeSourceIn);
}
@end
